<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="__CSS__/reset.css">
    <link rel="stylesheet" href="__CSS__/基础框架.css">
    <link rel="stylesheet" href="__CSS__/detail.css">
    <script type='text/javascript' src='__JS__/jquery-3.5.1.min.js'></script>
    
    
</head>

<body onload="selected()">
    <div class="container-nav">
        <div id="nav-top"></div>
        <div class="container">
            <div class="nav">
                <nav id="nav-left">
                    <div class="nav-left tuwen">
                        <img id="logo" src="__IMG__/logo.png" alt="">
                        <span><b>LearnKu</b></span>
                        <img id="xiala" src="__IMG__/下拉.png" alt="">
                    </div>
                    <a id="box" href="{:url('Index/Index')}"class="nav-left">社区</a>
                    <!-- 下拉菜单栏 -->
                    <div id="down" style="display: none;">
                        <ul id="show" value="隐藏">
                            <!-- 帖子菜单列表1803010144 -->
                            {volist name="sec" id="secNow"}
                            <li><a href="{:url('Index/view',['sid' => $secNow.s_id])}">{$secNow.s_name}</a></li>
                            {/volist}
                        </ul>
                    </div>
                    <script type='text/javascript' src="__JS__/xiala.js"></script>
                   
                    <!-- <a href="#" class="nav-left">动态</a> -->
                    <div class="nav-left tuwen">
                        <a href="">
                            <img id="shequ" src="__IMG__/所有社区.png" alt="">
                            <span>所有社区</span>
                            <img id="new" src="__IMG__/new.png" alt="">
                        </a>
                    </div>
                    <form action="">
                        <input type="" placeholder="搜索">
                    </form>
                </nav>
                <nav id="nav-right">
                    <a  href="{:url('Index/view')}" class="nav-right">论坛门户</a>
                    
                    <a id="box" href="{:url('Index/view')}" class="nav-right">论坛门户</a>
                    <!-- 下拉菜单栏 -->
                    <div id="down" style="display: none;">
                        <ul id="show" value="隐藏">
                            <!-- 帖子菜单列表1803010144 -->
                            {volist name="sec" id="secNow"}
                            <li><a href="{:url('Index/view',['sid' => $secNow.s_id])}">{$secNow.s_name}</a></li>
                            {/volist}
                        </ul>
                    </div>
                    <a href="{:url('Index/me')}" class="nav-right">上传头像</a>
                    <a href="{:url('User/login')}" class="nav-right">登录</a>
                    <a href="{:url('User/reg')}" class="nav-right">注册</a>
                    <a href="{:url('Index/logOut')}" class="nav-right">注销</a>
                    <a href="{:url('User/contact')}" class="nav-right">联系我们</a>
                    {if (session('uNick') !== null)}
                    <a href="" class="nav-right"><span>欢迎：{:session('uNick')}</span></a>
                    <img src="__POT__/{:session('uImg')}" alt="">
                    {/if}
                </nav>
            </div>
        </div>
    </div>
    <!-- 下拉菜单js 1803010144 -->

    <!-- 发布帖子内容 1803010144-->
    <div class="centered">
        <div class="centered-left">
            <!-- 发帖表单1803010144 -->
            {if ($pageNull == 1)}
            <div class="u_title">
                <span>{:$mes.m_title}</span>
            </div>
            <div class="post-info">
                <div class="u_user">
                    <span>浏览：68</span>
                    <span>{$mes.m_createat|date="Y-m-d h:i:s a"}</span>
                    <span>类型</span>
                </div>
                <div class="m_content">
                    <span>
                        {$mes.m_content}
                    </span>
                </div>
            </div>
            {/if}
            <!-- 评论区 -->
            <div class="clear"></div>
            {volist name="res" id="resRow"}
            <div class="comment">
                <!-- 显示评论 -->
                
                <div class="comment-top">
                    <!-- 评论用户信息 -->
                    <!-- 循环打印用户评论信息 -->
                    <img src="__POT__/{$resRow.u_img}" alt="" class="u_nick">
                    <!-- 评论板块 -->
                    <div class="user-info">
                        <!-- 评论用户的个人信息排列 -->
                        <div class="u_cre">
                            <div class="pinglun_nick">
                                <!-- 用户姓名 -->
                                <span id="firstnick">{$resRow.u_nick}</span>
                                <span>评论时间：{$resRow.r_createat|date="Y-m-d"}</span>
                                <!-- 评论时间 -->
                            </div>
                        </div>
                        <div class="u_info">
                            <p>{$resRow.r_content}</p>
                            <!-- 这是用户评论的信息 -->
                        </div>
                    </div>
                    
                </div>
            </div>

            {/volist}
            <input id="hiddenS" type="hidden" value="{:$select}">
            <!-- 选择每次页码查询的次数 -->
            <!-- {:url('index/detail')} -->
            <form action="{:url('index/detail')}">
                <input name="mid" type="hidden" value="{:$mes.m_id}">
                <div >
                    <span>共{:$res_length}条，每条显示
                        <select id="select" name="select"  onchange="return submit()">
                            <option disabled="disabled">-请选择-</option>
                            <option  value="5" >5</option>
                            <option id="option" value="10">10</option>
                            <option value="20">20</option>
                            <option  value="50">50</option>
                        </select>条</span>
                </div> 
            </form>
                
            <script>
                function selected() {
                    $a = $("#hiddenS").val();
                    console.log($a);
                    $("#select").find("option").each(function () {
                        if($(this).text() == $a){
                            $(this).attr("selected",true);
                        }
                    });
                }
            </script>
            
            <div class="paginations">
                {$res|raw}
            </div>
            <div class="clear"></div>
            <!-- 发表评论 -->
            {if (session('uNick') !== null)}
            <form action="{:url('index/doRes')}" method="POST">
                <input  name="mid" type="hidden" value="{:$mes.m_id}">
            <div class="comment-buttom">
                <img src="__POT__/{:session('uImg')}" alt="" >
                <span>{:session('uNick')}</span>
                <div>
                    <textarea name="rcontent" class="com-input" placeholder="我要发言"></textarea>
                    <input type="submit" class="com-sub">
                </div>
            </div>
            </form>
            {/if}
            
        </div>
        
        <div class="centered-right">
            <img style="width: 50px; height: 50px;" src="__POT__/{:$mes.u_img}" alt="">
            <div class="nav-left">
                <span class="unick">
                    {:$mes.u_nick}
                </span><br>
                <span class="jifen">
                    积分：121 等级：LV1
                </span>
            </div>
        </div>
    </div>
    
    <div class="clear"></div>
    <div id="footer">
        <div id="footer-top">
            <div class="clumn">
                <div class="white-img bottom-img bottom-top1 bottom-nav">
                    <h4>
                        <img src="__IMG__/bottom-logo.png" alt="">
                        <span>关于 Learnlku</span>
                    </h4>
                </div>
                <div class="lh-3 bottom-center bottom-top1">
                    <h4>LearnKu是终身编程者的修到场<br>
                        摒弃世俗浮躁，追求技术精湛
                    </h4>
                </div>
                <div class="bottom-a bottom-img bottom-top1 botton-center">
                    <h4><a href=""></a>
                        <img src="__IMG__/蛋糕.png" alt="">
                        <span>LearnKu诞生的故事</span>
                    </h4></a>
                </div>
            </div>
            <div class="clumn">
                <div class="bottom-nav">
                    <h4>资源推荐</h4>
                </div>
                <div class="botton-center lh-3 mobe-1 bottom-a">
                    <h4>
                        <a href="">《社区使用指南》</a><br>
                        <a href="">《文档撰写指南》</a><br>
                        <a href="">《Learnlku》社区规范</a>
                    </h4>
                </div>
            </div>
            <div class="clumn">
                <div class="bottom-nav">
                    <h4>赞助商</h4>
                </div>
                <div class="bottom-top3">
                    <a href=""><img src="__IMG__/UCLOUD.png" alt=""></a><br>
                    <a href=""><img src="__IMG__/又拍云.png" alt=""></a><br>
                    <a href=""><img src="__IMG__/sendClound.png" alt=""></a><br>
                </div>
            </div>
            <div class="clumn">
                <div class="bottom-nav">
                    <h4>其他信息</h4>
                </div>
                <div class="botton-center lh-3 mobe-1 bottom-a">
                    <h4>
                        <a href="">
                            <img src="__IMG__/点赞.png" alt="">
                            软件外包</a><br>
                        <a href="">
                            <img src="__IMG__/心跳.png" alt="">
                            成为版主</a><br>
                        <a href="">
                            <img src="__IMG__/键盘.png" alt="">
                            所有测试</a><br>
                        <a href="">
                            <img src="__IMG__/微信.png" alt="">
                            联系站长(反馈建议)</a>
                    </h4>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div id="footer-bottom">
            <a href="">粤ICP备18099781号-6</a> | <a href=""><img src="__IMG__/警徽.png" alt="">粤公网安备 44030502004330号</a> | <a
                href="https://learnku.com/lk">违法和不良信息举报</a>
            <p class="ui inverted signature">由 <a href="https://learnku.com/contact">Summer</a> 设计和编码 <span>❤</span></p>
        </div>
    </div>
</body>

</html>